package com.fsh.mapper;

import com.fsh.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    //查询全部
    List<User> queryAll();
    //插入单条记录
    Integer addOne(User user);
    //根据id删除单条记录
    Integer delById(Integer id);
    //根据id更新
    Integer updateById(User user);
    //分页查询
    List<User> pageList();
}
